(function() {
  'use strict';

  angular.module('starter.pages.plan', [
      'starter.pages.plan.controller',
      'starter.pages.plan.services'
    ])
    .config(function($stateProvider) {

      $stateProvider.state('tab.plan', {
          url: '/plan',
          views: {
            'tab-plan': {
              templateUrl: 'templates/plan/plan-list.html',
              controller: 'PlanCtrl'
            }
          }
        })
        .state('tab.add-plan', {
          url: '/plan/add',
          views: {
            'tab-plan': {
              templateUrl: 'templates/plan/add-plan.html',
              controller: 'PlanAddCtrl'
            }
          }
        })
        .state('tab.edit-plan', {
          url: '/plan/edit/:planId',
          views: {
            'tab-plan': {
              templateUrl: 'templates/plan/plan-edit.html',
              controller: 'PlanEditCtrl'
            }
          }
        })
        .state('tab.edit-plan-child', {
          url: '/plan/child/list/',
          views: {
            'tab-plan': {
              templateUrl: 'templates/plan/plan-child-list.html',
              controller: 'PlanChildListCtrl'
            }
          }
        })
        .state('tab.plan-contacts-list', {
          url: '/plan/contacts/list/',
          views: {
            'tab-plan': {
              templateUrl: 'templates/plan/plan-contacts-list.html',
              controller: 'PlanContactsListCtrl'
            }
          }
        });

    });

})();
